package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.utils.StringOrListDeserializer;

import java.util.Date;
import java.util.List;

/**
 * 问题反馈对象 feedback_items
 * 
 * @author ruoyi
 * @date 2025-01-12
 */
public class FeedbackItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 反馈序号 */
    @Excel(name = "反馈序号")
    private String serial;

    /** 反馈人姓名 */
    @Excel(name = "反馈人姓名")
    private String name;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 村小组 */
    @Excel(name = "村小组")
    private String villageGroup;

    /** 用户ID */
    private Long userId;

    /** 问题类型 */
    @Excel(name = "问题类型")
    private String type;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String description;

    /** 处理反馈 */
    @Excel(name = "处理反馈")
    private String feedback;

    /** 处理状态 */
    @Excel(name = "处理状态", readConverterExp = "pending=待处理,processing=处理中,completed=已完成")
    private String status;

    /** 相关图片URL，多个用逗号分隔 */
    private String imagesUrls;

    /** 图片列表（用于前端展示） */
    @JsonDeserialize(using = StringOrListDeserializer.class)
    private List<String> images;

    /** 处理图片URL，多个用逗号分隔 */
    private String handleImagesUrls;

    /** 处理图片列表（用于前端上传展示） */
    @JsonDeserialize(using = StringOrListDeserializer.class)
    private List<String> handleImages;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date submitTime;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

    /** 处理人 */
    @Excel(name = "处理人")
    private String handleBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSerial(String serial) 
    {
        this.serial = serial;
    }

    public String getSerial() 
    {
        return serial;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setVillageGroup(String villageGroup) 
    {
        this.villageGroup = villageGroup;
    }

    public String getVillageGroup() 
    {
        return villageGroup;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setFeedback(String feedback) 
    {
        this.feedback = feedback;
    }

    public String getFeedback() 
    {
        return feedback;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setImagesUrls(String imagesUrls) 
    {
        this.imagesUrls = imagesUrls;
    }

    public String getImagesUrls() 
    {
        return imagesUrls;
    }

    public void setImages(List<String> images) 
    {
        this.images = images;
    }

    public List<String> getImages() 
    {
        return images;
    }

    public void setHandleImagesUrls(String handleImagesUrls)
    {
        this.handleImagesUrls = handleImagesUrls;
    }

    public String getHandleImagesUrls()
    {
        return handleImagesUrls;
    }

    public void setHandleImages(List<String> handleImages)
    {
        this.handleImages = handleImages;
    }

    public List<String> getHandleImages()
    {
        return handleImages;
    }

    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }

    public void setHandleTime(Date handleTime) 
    {
        this.handleTime = handleTime;
    }

    public Date getHandleTime() 
    {
        return handleTime;
    }

    public void setHandleBy(String handleBy) 
    {
        this.handleBy = handleBy;
    }

    public String getHandleBy() 
    {
        return handleBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serial", getSerial())
            .append("name", getName())
            .append("phone", getPhone())
            .append("villageGroup", getVillageGroup())
            .append("userId", getUserId())
            .append("type", getType())
            .append("description", getDescription())
            .append("feedback", getFeedback())
            .append("status", getStatus())
            .append("imagesUrls", getImagesUrls())
            .append("handleImagesUrls", getHandleImagesUrls())
            .append("submitTime", getSubmitTime())
            .append("handleTime", getHandleTime())
            .append("handleBy", getHandleBy())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
